module.exports.clone = async function clone(repo, desc) {
  const { promisify } = require('util')
  const download = promisify(require('download-git-repo'));
  const ora = require('ora');
  const process = ora(`正在下载....${repo}`);
  process.start();
  console.log(repo)
  console.log(desc)
  try {
    await download(repo,desc)
  } catch (error) {
    console.log('失败')
    process.fail()
  }
  process.succeed()
}
